/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const siteRouter = [{
  path: '/',
  component: Layout,
  redirect: '/site/list',
  name: 'Site',
  meta: {
    title: 'site.siteManagement',
    icon: 'el-icon-s-tools'
  },
  children: [
    {
      path: 'site/list',
      component: () => import('@/views/site/index'),
      name: 'SiteList',
      meta: { title: 'site.list', icon: 'list', affix: true }
    },
    {
      path: 'site/recycle-bin',
      component: () => import('@/views/site/recycle-bin'),
      name: 'SiteRecycleBin',
      meta: { title: 'common.recycleBin', icon: 'el-icon-delete', affix: true }
    },
    {
      path: 'site/add',
      component: () => import('@/views/site/add'),
      name: 'SiteCreate',
      meta: { title: 'site.create', icon: 'el-icon-circle-plus' },
      hidden: true
    },
    {
      path: 'site/edit/:id(\\d+)',
      component: () => import('@/views/site/edit'),
      name: 'SiteEdit',
      meta: { title: 'site.edit', noCache: true, activeMenu: '/site/list' },
      hidden: true
    },
    {
      path: 'site/function-combination/:id(\\d+)',
      component: () => import('@/views/site/FunctionCombination'),
      name: 'SiteFunctionCombination',
      meta: { title: 'site.functionCombination', noCache: true, activeMenu: '/site/list' },
      hidden: true
    },
    {
      path: 'site/domain-name/:id(\\d+)',
      component: () => import('@/views/site/domain-name'),
      name: 'SiteDomainName',
      meta: { title: 'site.domainName', noCache: true, activeMenu: '/site/list' },
      hidden: true
    }
  ]
}]

export default siteRouter
